#pragma once
#include "common.h"
#define LRU_SIZE 1000

typedef struct HEAP_RECORD
{
    u32 time_receive;
    RR* record;
}heap_record;

heap_record heap[LRU_SIZE];

void cache_insert(RR* record, int timeArrive);
RR* cache_find(unsigned char* domain, int timeNow);
void cache_init();